package com.lbj.ordinary

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
import lbj.join.tool.versionName

@SuppressLint("SetTextI18n")
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        tvStart.text = "1122122222222222222222"

        initListener()

    }

    private fun initListener(){
        tvStart.setOnClickListener {
            Toast.makeText(this,"点击了文字",Toast.LENGTH_SHORT).show()

            tvStart.text = versionName()
        }
    }
}